package exception;


import enums.FFmpegCodeEnum;

public class FFmpegException extends RuntimeException {

    private FFmpegCodeEnum ffmpegCodeEnum;

    public FFmpegException(FFmpegCodeEnum ffmpegCodeEnum) {
        super(ffmpegCodeEnum.getMessage());
        this.ffmpegCodeEnum = ffmpegCodeEnum;
    }

    public FFmpegCodeEnum getFFmpegCodeEnum() {
        return this.ffmpegCodeEnum;
    }

    public Integer getCode() {
        return this.ffmpegCodeEnum.getCode();
    }

    @Override
    public String getMessage() {
        return this.ffmpegCodeEnum.getMessage();
    }
}
